﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Interop;
using System.Windows;

namespace Love2DWindow
{
    internal static class WindowHelper
    {

        public static IntPtr GetCurrentWindowHandle(this Window window)
        {
            HwndSource hs = (HwndSource)PresentationSource.FromDependencyObject(window);
            return hs.Handle;
            
        }
    }
}
